'use strict';

/**
 * Created by GCX on 2018/1/29.
 */
$(function () {

    layui.use(['layer', 'form'], function () {

        var layer = layui.layer,
            form = layui.form();

        form.on('select', function (data) {

            localStorage.setItem('value', data.value);

            location.href = ThinkPHP['AJAX'] + '/Summary/index/id/' + data.value;
        });

        $('.pName').click(function () {

            $.ajax({
                url: ThinkPHP['AJAX'] + '/Summary/getMySubordinates',
                data: {
                    uid: $(this).attr('uid')
                },
                type: 'GET',
                dataType: 'json',
                success: function success(response) {}

            });
        });
    });
});